<template>
  <el-drawer :model-value="drawer" size="50%">
    <template #header>
      <h4>视频库</h4>
    </template>
    <!-- #default是默认超操 要在里面写<slot></slot>父组件才有效果 -->
    <template #default>
      <slot name="center"></slot>
    </template>
  </el-drawer>
</template>

<script setup>
defineProps({
  drawer: {
    type: Boolean,
    default: false,
  },
});
</script>
<style scoped lang="scss">
h4 {
  font-size: 16px;
  font-weight: 600;
  line-height: 56px;
  color: #1d2129;
}
</style>
